generate Apple Client Secret
suspend fun generateAppleClientSecret(clientId: String, teamId: String, keyId: String, privateKey: String, duration: Long): String
Generates a new Apple OAuth2 client secret key.
Parameters
client Id
the apple service id.
team Id
10-character string associated with your developer account (usually could be found next to your name in the Apple Developer site)
key Id
10-character key identifier generated for the "Sign in with Apple" private key associated with your developer account
private Key
the private key associated to your app
duration
how long the generated JWT token should be considered valid. The specified value must be in seconds and max 15777000 (~6months).